package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_plan table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_plan"
 */

public abstract class BaseTbPlan  implements Serializable {

	public static String REF = "TbPlan";
	public static String PROP_TYPE = "Type";
	public static String PROP_PLAN_YEAR = "PlanYear";
	public static String PROP_USER_ID = "UserId";
	public static String PROP_STATUS = "Status";
	public static String PROP_RECEIVER_NAME = "ReceiverName";
	public static String PROP_SUBJECT_ID = "SubjectId";
	public static String PROP_MOBILE_NO = "MobileNo";
	public static String PROP_TEL = "Tel";
	public static String PROP_DEPARTMENT_NAME = "DepartmentName";
	public static String PROP_LAST_TIME = "LastTime";
	public static String PROP_LAST_PERSON_ID = "LastPersonId";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_UNIT_NAME = "UnitName";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTbPlan () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbPlan (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer userId;
	private java.lang.String unitName;
	private java.lang.Integer type;
	private java.lang.String planYear;
	private java.lang.Integer subjectId;
	private java.lang.String departmentName;
	private java.lang.String receiverName;
	private java.lang.String tel;
	private java.lang.String mobileNo;
	private java.lang.String lastTime;
	private java.lang.Integer lastPersonId;
	private java.lang.Integer status;
	private java.lang.Integer sub1;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: user_id
	 */
	public java.lang.Integer getUserId () {
		return userId;
	}

	/**
	 * Set the value related to the column: user_id
	 * @param userId the user_id value
	 */
	public void setUserId (java.lang.Integer userId) {
		this.userId = userId;
	}



	/**
	 * Return the value associated with the column: unit_name
	 */
	public java.lang.String getUnitName () {
		return unitName;
	}

	/**
	 * Set the value related to the column: unit_name
	 * @param unitName the unit_name value
	 */
	public void setUnitName (java.lang.String unitName) {
		this.unitName = unitName;
	}



	/**
	 * Return the value associated with the column: type
	 */
	public java.lang.Integer getType () {
		return type;
	}

	/**
	 * Set the value related to the column: type
	 * @param type the type value
	 */
	public void setType (java.lang.Integer type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: plan_year
	 */
	public java.lang.String getPlanYear () {
		return planYear;
	}

	/**
	 * Set the value related to the column: plan_year
	 * @param planYear the plan_year value
	 */
	public void setPlanYear (java.lang.String planYear) {
		this.planYear = planYear;
	}



	/**
	 * Return the value associated with the column: subject_id
	 */
	public java.lang.Integer getSubjectId () {
		return subjectId;
	}

	/**
	 * Set the value related to the column: subject_id
	 * @param subjectId the subject_id value
	 */
	public void setSubjectId (java.lang.Integer subjectId) {
		this.subjectId = subjectId;
	}



	/**
	 * Return the value associated with the column: department_name
	 */
	public java.lang.String getDepartmentName () {
		return departmentName;
	}

	/**
	 * Set the value related to the column: department_name
	 * @param departmentName the department_name value
	 */
	public void setDepartmentName (java.lang.String departmentName) {
		this.departmentName = departmentName;
	}



	/**
	 * Return the value associated with the column: receiver_name
	 */
	public java.lang.String getReceiverName () {
		return receiverName;
	}

	/**
	 * Set the value related to the column: receiver_name
	 * @param receiverName the receiver_name value
	 */
	public void setReceiverName (java.lang.String receiverName) {
		this.receiverName = receiverName;
	}



	/**
	 * Return the value associated with the column: tel
	 */
	public java.lang.String getTel () {
		return tel;
	}

	/**
	 * Set the value related to the column: tel
	 * @param tel the tel value
	 */
	public void setTel (java.lang.String tel) {
		this.tel = tel;
	}



	/**
	 * Return the value associated with the column: mobile_no
	 */
	public java.lang.String getMobileNo () {
		return mobileNo;
	}

	/**
	 * Set the value related to the column: mobile_no
	 * @param mobileNo the mobile_no value
	 */
	public void setMobileNo (java.lang.String mobileNo) {
		this.mobileNo = mobileNo;
	}



	/**
	 * Return the value associated with the column: last_time
	 */
	public java.lang.String getLastTime () {
		return lastTime;
	}

	/**
	 * Set the value related to the column: last_time
	 * @param lastTime the last_time value
	 */
	public void setLastTime (java.lang.String lastTime) {
		this.lastTime = lastTime;
	}



	/**
	 * Return the value associated with the column: last_person_id
	 */
	public java.lang.Integer getLastPersonId () {
		return lastPersonId;
	}

	/**
	 * Set the value related to the column: last_person_id
	 * @param lastPersonId the last_person_id value
	 */
	public void setLastPersonId (java.lang.Integer lastPersonId) {
		this.lastPersonId = lastPersonId;
	}



	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.Integer getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.Integer status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.Integer getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.Integer sub1) {
		this.sub1 = sub1;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbPlan)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbPlan tbPlan = (com.xjzp.business.db.hibernate.po.TbPlan) obj;
			if (null == this.getId() || null == tbPlan.getId()) return false;
			else return (this.getId().equals(tbPlan.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}



}